<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
   <%@taglib prefix="s" uri="/struts-tags"%>
   
   <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<s:head theme="ajax"/>
</head>
<body>
<table width="756" height="100" border=0 cellpadding="0" cellspacing="0">
<tr>
<td align=center width=300><b><center><font size=6>보고서 결제 서류</font></center></b><br>
<s:if test="vo.type==3">
	<font color="blue"><center>최종 승인된 보고서 입니다.</center></font>
</s:if>
</td><td width=150>&nbsp;
</td>
<td width=306 align=right valign="bottom">

<s:if test="vo.type>=1">
<table border=1 width=270 height=90 cellpadding="0" cellspacing="0">
	<tr height=25>
	<td align=center width=90 bgcolor="rgb(248,248,248)">작성자</td><td align=center width=90 bgcolor="rgb(248,248,248)">검토</td><td align=center width=90 bgcolor="rgb(248,248,248)">승인</td>
	</tr>
	<tr height=65 align="center">
	<td><img src="/ssteam/image/work/stamp/${vo.send }.png"></td>
	<td>
	<s:if test="vo.type>=2">
	<s:if test="vo.get==1111111">
	<font color="red">//직통 보고서<br>입니다.//</font>
	</s:if>
	<s:else>
	<img src="/ssteam/image/work/stamp/${vo.get }.png">
	</s:else>
	</s:if>
	<s:else>
	<font color="green">승인대기</font>
	</s:else>
	</td>
	<td>
	<s:if test="vo.type==3">
	<img src="/ssteam/image/work/stamp/1111111.png">
	</s:if>
	<s:else>
	----
	</s:else>
	</td>
	</tr>
</table>
</s:if>
<s:else>

<center><font color="red" size=5><b>승인이 거부되었습니다.</b></font></center>
<br><br><br>
</s:else>
</td>
</tr>
</table>
<form action="/ssteam/workreport/firststep.do" method=post id="agreefrm">
<table width="756" height="380" border=1 cellpadding="0" cellspacing="0" bordercolor="rgb(248,248,248)">
<tr height=20>
<td width=100 align=center  bgcolor="rgb(248,248,248)">보고서 제목</td><td width=178>&nbsp;&nbsp;${vo.subject }</td><td width=100 align=center  bgcolor="rgb(248,248,248)">작성일</td><td width=178>&nbsp;&nbsp;<s:date name="vo.writeday" format="MM월 dd일 : hh시 mm분 ss초"/></td>
</tr>
<tr height=20>
<td align=center bgcolor="rgb(248,248,248)">보고자</td><td>&nbsp;&nbsp;${vo.name }</td><td align=center bgcolor="rgb(248,248,248)">검토자</td><td>&nbsp;&nbsp;
<s:if test="vo.get==6666666">
나은학
</s:if>
<s:elseif test="vo.get==4444444">
윤종식
</s:elseif>
</td>
</tr>
<tr height=320>
<s:if test="vo.type==0">
<td height=420 colspan=4 align="left" valign="top" background="/ssteam/image/work/rollback.bmp">
</s:if>
<s:elseif test="vo.type==3">
<td height=420 colspan=4 align="left" valign="top" background="/ssteam/image/work/finish.bmp">
</s:elseif>
<s:else>
<td height=420 colspan=4 align="left" valign="top">
</s:else>

&nbsp;<br><br>
<pre>
${vo.content }
</pre>
</td>
</tr>
<tr align="center">
<td colspan=4 height=30>

<input type="hidden" name=no value=${vo.no }>
<!--===========================  액션 시작 =========================== -->

<s:if test="%{#session.user.slevel==40}">
<s:if test="%{#session.user.sabun==vo.get}">
<s:a formId="agreefrm" theme="ajax" targets="incenter" showLoadingText="false">

<font color="green">1차승인</font>
</s:a>
　　　
</s:if>
</s:if>
<s:if test="%{#session.user.slevel==45}">
<s:a href="/ssteam/workreport/finalstep.do?sabun=%{#session.user.sabun}&no=%{vo.no}" theme="ajax" targets="incenter">
<font color="blue">최종승인</font>
</s:a>
　　　
<s:a href="/ssteam/workreport/backtothemiddle.do?no=%{vo.no}" theme="ajax" targets="incenter">
<font color="red">재검토요망</font>
</s:a>
　　　
</s:if>


<s:if test="%{#session.user.slevel==40}">
<s:if test="%{#session.user.sabun==vo.get}">
<s:a href="/ssteam/workreport/backtothebottom.do?no=%{vo.no}" theme="ajax" targets="incenter">
<font color="red">되돌려 보내기</font>
</s:a>
　　　
</s:if>
</s:if>

<!-- =========================== 액션 끝 =========================== -->




<s:if test="%{#session.user.sabun==vo.get}">
<s:a href="/ssteam/workreport/list_get.do?sabun=%{#session.user.sabun}" theme="ajax" targets="incenter">목록</s:a>
</s:if>
<s:else>
<s:a href="/ssteam/workreport/list_send.do?sabun=%{#session.user.sabun}" theme="ajax" targets="incenter">목록</s:a>
</s:else>
</td>

</tr>
</table>
</form>
</body>
</html>